//
//  YBNoticeBackListTableViewCell.m
//  GongXinDangJian
//
//  Created by apple on 17/12/21.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "YBNoticeBackListTableViewCell.h"

@interface YBNoticeBackListTableViewCell ()
@property (nonatomic , strong) UILabel * cellTitleLabel;

@property (nonatomic , strong) UILabel * timeLabel;
@end

@implementation YBNoticeBackListTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self ybInitCell];
        self.backgroundColor = [UIColor themeGrayColor];
    }
    return self;
}

-(void)ybInitCell{
    UIView * theContentView = [[UIView alloc]initWithFrame:CGRectMake(0, ItemHeight * 20, [UIScreen zj_screenWith], ItemHeight * 110)];
    theContentView.backgroundColor = [UIColor whiteColor];
    [self.contentView addSubview:theContentView];
    
    [theContentView addSubview:self.cellTitleLabel];
    [theContentView addSubview:self.timeLabel];
}


-(void)setModel:(YBAcceptMessageListModel *)model
{
    _model = model;
    self.cellTitleLabel.text = model.CONTENT;
    self.timeLabel.text = model.UPDATETIME;
}


-(void)resetLabelTextColor{
    self.cellTitleLabel.textColor = [UIColor textGrayColor];
    self.timeLabel.textColor = [UIColor textGrayColor];
}

-(UILabel *)cellTitleLabel
{
    if (!_cellTitleLabel) {
        _cellTitleLabel = [ToolClass creatLabelWithFrame:CGRectMake(ItemWidth * 30, ItemHeight * 10, [UIScreen zj_screenWith] - ItemWidth * 60, ItemHeight * 50) font:16 textColor:[UIColor textBlackColor] text:@""];
    }
    return _cellTitleLabel;
}


-(UILabel *)timeLabel
{
    if (!_timeLabel) {
        _timeLabel = [ToolClass creatLabelWithFrame:CGRectMake(ItemWidth * 30, ItemHeight * 60, [UIScreen zj_screenWith] - ItemWidth * 60, ItemHeight * 30) font:14 textColor:[UIColor textBlackColor] text:@""];
    }
    return _timeLabel;
}









@end
